﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace HappyFrogXna.DrawingSystem
{
    public struct Sprite
    {
        public Vector2 Origin;
        public Texture2D Texture;

        public float Height 
        {
            get { return Texture.Height; }
        }

        public float Width
        {
            get { return Texture.Width; }
        }

        public Sprite(Texture2D texture, Vector2 origin)
        {
            this.Texture = texture;
            this.Origin = origin;
        }

        public Sprite(Texture2D texture)
        {
            this.Texture = texture;
            this.Origin = new Vector2(texture.Width / 2f, texture.Height / 2f);
        }
    }
}
